import axios from "@/model/axios";
import api from "@/model/active/api";

//首页轮播图
export const bannerList = () =>
  axios({
    method: "get",
    url: api.active.banner,
  });
//完成
export const ActiveCompleted = (params) =>
  axios({
    method: "get",
    url: api.activecompleted.ActiveCompleted,
    params,
  });
//分类
export const categoryList = () =>
  axios({
    method: "get",
    url: api.category.categoryList,
  });


//详情
export const ActiveDetail = (id) =>
  axios({
    method: "get",
    url: api.activedetail.ActiveDetail + id,
  });

//报名
export const ActiveSignup = (params) =>
  axios({
    method: "get",
    url: api.activesignup.ActiveSignup,
    params,
    headers: { Authorization: window.localStorage.getItem("token") },
  });
//取消
export const ActiveCancelled = () =>
  axios({
    method: "get",
    url: api.activecancelled.ActiveCancelled,
  });
